package com.jetinno.utils

import com.zyc.studentstudy.utils.ScreenUtil

/**
 * Created by zhangyuncai.
 * Date: 2023/2/19
 * ///横竖屏弹框宽高比例
 */
object DialogPx {
    private val _widthPercent: Double
        get() = if (ScreenUtil.isLand()) {
            0.7
        } else 0.9
    private val _heightPercent: Double
        get() = if (ScreenUtil.isLand()) {
            0.9
        } else 0.7

    @JvmStatic
    fun getWidthPercent():Double{
        return _widthPercent
    }

    @JvmStatic
    fun getHeightPercent():Double{
        return _heightPercent
    }
}
